#Controller.py

#print("猜{}了".format("对" if eval(input("输入guess："))==99 else "错"))
'''
and
or 
not
'''
def tryExceptTest():
    try :
        num = eval(input("输入一个整数："))
    except :
        print("输入的不是整数！")

"""
try:
except:
else:
finally:
"""
'''
for <条件> in {结构}:
    语句块
while <条件>:
    语句块
break-continue
'''
def BMI():
    height,weight = eval(input("请输入身高（米），体重（千克）[逗号隔开]："))
    bmi = weight/pow(height,2)
    print("BMI 数值为：{:.2f}".format(bmi))
    if bmi < 18.5:
        who,nat = "偏瘦","偏瘦"
    elif 18.5 <= bmi < 24:
        who,nat = "正常","正常"
    elif 24 <= bmi < 25:
        who,nat = "正常","偏胖"
    elif 25 <= bmi < 28:
        who,nat = "偏胖","偏胖"
    elif 28 <= bmi < 30:
        who,nat = "偏胖","肥胖"
    else:
        who,nat = "肥胖","肥胖"
    print("BMI指标为：国际 {0}，国内 {1}".format(who,nat))

#BMI() 
for chr in "python":
    if chr == 't':
        break
    print(chr,end='')
else:
    print("正常退出")